@namespace DevToys.Blazor.Components.UIElements
@using DevToys.Api;
@inherits StyledComponentBase

<UITextInputWrapper @ref="_textInputWrapper" UITextInput="@UINumberInput">
    <TextBox IsVisible="@UINumberInput.IsVisible"
             IsEnabled="@(UINumberInput.IsEnabled && IsActuallyEnabled)"
             Text="@UINumberInput.Text"
             IsReadOnly="@UINumberInput.IsReadOnly"
             TextChanged="@OnTextChanged"
             Type="TextBoxTypes.Number"
             Min="@UINumberInput.Min"
             Max="@UINumberInput.Max"
             Step="@UINumberInput.Step"
             ParentComponent="_textInputWrapper" />
</UITextInputWrapper>